package entity;

/**
 * @author pengrui
 * @version 1.0
 * @date 2021/9/8 18:18
 */
public class Household {
    private int id;
    private String name;
    private String sex;
    private String phoneNumber;
    private String company;
    private String community;
    private String location;

    public Household(){

    }
    public Household(String name, String sex, String phoneNumber, String company, String community, String location) {
        this.name = name;
        this.sex = sex;
        this.phoneNumber=phoneNumber;
        this.company = company;
        this.community = community;
        this.location = location;
    }

    public Household(int id, String name, String sex, String phoneNumber, String company, String community, String location) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.phoneNumber = phoneNumber;
        this.company = company;
        this.community = community;
        this.location = location;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String  phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getCommunity() {
        return community;
    }

    public void setCommunity(String community) {
        this.community = community;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return "Household{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", phoneNumber=" + phoneNumber +
                ", company='" + company + '\'' +
                ", Community='" + community + '\'' +
                ", location='" + location + '\'' +
                '}';
    }
}
